home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 April / EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso / EARCD / text / hyper / hsc_source.lha / hsc / source / ugly / utime.h < prev    next >
C/C++ Source or Header  |  1996-07-30  |  636b  |  31 lines

  1. /*
  2.  *
  3.  * utime.h
  4.  *
  5.  * header file for filename manipulaton functions
  6.  *
  7.  * (W) by Tommy-Saftwörx in 1996
  8.  *
  9.  */
  10.  
  11. #include "utypes.h"
  12. #include "expstr.h"
  13.  
  14. /* template used to store time in a string: YYYY/MM/DD HH:MM:SS */
  15. #define UGLY_TIME_TEMPLATE_SSCANF   "%04d/%02d/%02d %02d:%02d:%02d"
  16. #define UGLY_TIME_TEMPLATE_STRFTIME "%Y/%m/%d %H:%M:%S"
  17.  
  18. #define UGLY_TIMESTR_LEN (strlen(UGLY_TIME_TEMPLATE_SSCANF))
  19. /*
  20.  * external function prototypes
  21.  */
  22.  
  23. #ifndef NOEXTERN_UGLY_UTIME_H
  24.  
  25. extern VOID clrtime(struct tm *time);
  26. extern BOOL time2estr(EXPSTR * dest, struct tm *time);
  27. extern BOOL str2time(struct tm *time, STRPTR timestr);
  28.  
  29. #endif
  30.  
  31.